var should = require('should');
var config = require('../../config');
var receiveSoldierHandler = require('../../../app/servers/activity/handler/receiveSoldierHandler.js');
var configUtil = require('../../../app/util/configUtil');
var analyze = require('kc-analyze');

suite('测试checkHandler', function () {
    setup(function (done) {
        var analyze_config = configUtil.load('analyze');
        var game_config = configUtil.load('game');
        analyze.initialize({
            host: analyze_config.host,
            server_id: game_config.server_id
        });
        done();
    });

    suite('receive', function () {
        test('士兵奖励领取', function (done) {
            var msg = {};
            msg.soldier_id = 1001;
            var session = {};
            session.uid = config.role_id;
            var receive_soldier_handler = new receiveSoldierHandler();
            receive_soldier_handler.receive(msg, session, function (err, res) {
                console.log('res:', res);
                done();
            });
        });
    });
});
